import { getReq, postReq, streamOutput } from '@U/common'

// 获取合同字典数据
export const getAIContractDictionary = (params = {}) => getReq('/api/channel-agent/aicontract/dictionary', params)
// 获取合同Prompt
export const getAIContractPrompt = (params = {}) => getReq('/api/channel-agent/aicontract/contract-prompt', params)
// 生成合同
export const generateContract = (params = {}) => streamOutput('/api/channel-agent/aicontract/generate-contract', params)
// 重新生成合同
export const rebuildContract = (params = {}) => streamOutput('/api/channel-agent/aicontract/rebuild-contract', params)
// 下载合同
export const downloadAIContract = (params = {}) => postReq('/api/channel-agent/aicontract/download', params)
